package top.mcwebsite.lib.transform.api

import java.io.File

interface Transformer {

    fun onBeforeTransform(context: TransformContext)

    fun isNeedScan(): Boolean = false

    fun scan(path: String, byteArraySupplier: () -> ByteArray) {
    }

    fun transform(byteArray: ByteArray): ByteArray

    fun onAfterTransform(context: TransformContext)
}